/**

This file is part of MaCI/GIMnet.

MaCI/GIMnet is free software: you can redistribute it and/or modify it 
under the terms of the GNU Lesser General Public License as published 
by the Free Software Foundation, either version 3 of the License, or 
(at your option) any later version.

MaCI/GIMnet is distributed in the hope that it will be useful, but WITHOUT 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public 
License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with GIMnet. (See COPYING.LESSER) If not, see 
<http://www.gnu.org/licenses/>.

**/
/**
 * \file
 * \brief VERY simple application which prints out C primitive datatype sizes on bytes and bits.
 * \author Antti Maula <antti.maula@tkk.fi>
 */

#include <stdio.h>

int main(void)
{
  printf("sizeof(short int) \t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(short int),(long unsigned int)8*sizeof(short int));
  printf("sizeof(unsigned short int) \t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(unsigned short int),(long unsigned int)8*sizeof(unsigned short int));
  printf("sizeof(int) \t\t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(int),(long unsigned int)8*sizeof(int));
  printf("sizeof(unsigned int) \t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(unsigned int),(long unsigned int)8*sizeof(unsigned int));
  printf("sizeof(long int) \t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(long int),(long unsigned int)8*sizeof(long int));
  printf("sizeof(unsigned long int) \t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(unsigned long int),(long unsigned int)8*sizeof(unsigned long int));
  printf("sizeof(long long int) \t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(long long int),(long unsigned int)8*sizeof(long long int));
  printf("sizeof(unsigned long long int) \t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(unsigned long long int),(long unsigned int)8*sizeof(unsigned long long int));
  printf("sizeof(float) \t\t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(float),(long unsigned int)8*sizeof(float));
  printf("sizeof(double) \t\t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(double),(long unsigned int)8*sizeof(double));
  printf("sizeof(long double) \t\t= %lubytes, \t%lubits\n", (long unsigned int)sizeof(long double),(long unsigned int)8*sizeof(long double));
  return 0;
}
